﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VendingMachine
{
    public class Product
    {
        public int      InventoryKeyNumber  { get; set; }
        public string   Name                { get; set; }
        public decimal  Price               { get; set; }

        public Product()
        {
        }

        public Product(string name, decimal price, int inventoryKeyNumber)
        {
            Name = name;
            Price = price;
            InventoryKeyNumber = inventoryKeyNumber;
        }

        public override string ToString()
        {
            return Name.ToString();
        }
    }
}
